package com.bjpowernode.boss.exceptions;

import com.bjpowernode.enums.RespCode;
import lombok.Data;

@Data
public class BossException extends  RuntimeException{

    private RespCode respCode;

    public BossException() {
        super();
    }

    public BossException(String message) {
        super(message);
    }

    public BossException(RespCode respCode) {
        super(respCode.getMsg());
        this.respCode = respCode;
    }
}
